package com.ruoyi.experiment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.experiment.mapper.ExperimentsTypeMapper;
import com.ruoyi.experiment.domain.ExperimentsType;
import com.ruoyi.experiment.service.IExperimentsTypeService;

/**
 * 实验类型管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-18
 */
@Service
public class ExperimentsTypeServiceImpl implements IExperimentsTypeService 
{
    @Autowired
    private ExperimentsTypeMapper experimentsTypeMapper;

    /**
     * 查询实验类型管理
     * 
     * @param typeId 实验类型管理主键
     * @return 实验类型管理
     */
    @Override
    public ExperimentsType selectExperimentsTypeByTypeId(Long typeId)
    {
        return experimentsTypeMapper.selectExperimentsTypeByTypeId(typeId);
    }

    /**
     * 查询实验类型管理列表
     * 
     * @param experimentsType 实验类型管理
     * @return 实验类型管理
     */
    @Override
    public List<ExperimentsType> selectExperimentsTypeList(ExperimentsType experimentsType)
    {
        return experimentsTypeMapper.selectExperimentsTypeList(experimentsType);
    }

    /**
     * 新增实验类型管理
     * 
     * @param experimentsType 实验类型管理
     * @return 结果
     */
    @Override
    public int insertExperimentsType(ExperimentsType experimentsType)
    {
        return experimentsTypeMapper.insertExperimentsType(experimentsType);
    }

    /**
     * 修改实验类型管理
     * 
     * @param experimentsType 实验类型管理
     * @return 结果
     */
    @Override
    public int updateExperimentsType(ExperimentsType experimentsType)
    {
        return experimentsTypeMapper.updateExperimentsType(experimentsType);
    }

    /**
     * 批量删除实验类型管理
     * 
     * @param typeIds 需要删除的实验类型管理主键
     * @return 结果
     */
    @Override
    public int deleteExperimentsTypeByTypeIds(Long[] typeIds)
    {
        return experimentsTypeMapper.deleteExperimentsTypeByTypeIds(typeIds);
    }

    /**
     * 删除实验类型管理信息
     * 
     * @param typeId 实验类型管理主键
     * @return 结果
     */
    @Override
    public int deleteExperimentsTypeByTypeId(Long typeId)
    {
        return experimentsTypeMapper.deleteExperimentsTypeByTypeId(typeId);
    }
}
